<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Test_Of_Csv_Reader</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class Test_Of_Csv_Reader</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
													<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Csv Reader unit tests</p>
		<p class="notes">
			Located in <a class="field" href="_tests---TestCases---Reader.php.html">/tests/TestCases/Reader.php</a> (line <span class="field">11</span>)
		</p>
		
				
		<pre>UnitTestCase
   |
   --Test_Of_Csv_Reader</pre>
	
			</div>
</div>



	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<div class="var-summary">
																																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$files" title="details" class="var-name">$files</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$tempfile" title="details" class="var-name">$tempfile</a>
				</div>
											</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																		<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																																												
												<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setUp" title="details" class="method-name">setUp</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#tearDown" title="details" class="method-name">tearDown</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#test_Csv_Reader_Accepts_Custom_Dialect" title="details" class="method-name">test_Csv_Reader_Accepts_Custom_Dialect</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#test_Csv_Reader_Count" title="details" class="method-name">test_Csv_Reader_Count</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#test_Csv_Reader_Escape_Characters_Get_Removed" title="details" class="method-name">test_Csv_Reader_Escape_Characters_Get_Removed</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#test_Csv_Reader_File_Does_Not_Exist" title="details" class="method-name">test_Csv_Reader_File_Does_Not_Exist</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#test_Csv_Reader_Get_Path" title="details" class="method-name">test_Csv_Reader_Get_Path</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#test_Csv_Reader_Is_Iterable" title="details" class="method-name">test_Csv_Reader_Is_Iterable</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#test_Csv_Reader_Maintains_State" title="details" class="method-name">test_Csv_Reader_Maintains_State</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#test_Csv_Reader_Reads_Row" title="details" class="method-name">test_Csv_Reader_Reads_Row</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#test_Csv_Reader_Removes_Blank_Lines" title="details" class="method-name">test_Csv_Reader_Removes_Blank_Lines</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#test_Csv_Reader_Uses_Default_Dialect_If_None_Provided" title="details" class="method-name">test_Csv_Reader_Uses_Default_Dialect_If_None_Provided</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#test_quotes_get_removed_from_data" title="details" class="method-name">test_quotes_get_removed_from_data</a>
										()
									</div>
								</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<a name="var$files" id="$files"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$files</span>
			 = <span class="var-default">array()</span>			(line <span class="line-number">13</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$tempfile" id="$tempfile"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$tempfile</span>
						(line <span class="line-number">14</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
						
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
																	<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="methodsetUp" id="setUp"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">setUp</span> (line <span class="line-number">15</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setUp
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodtearDown" id="tearDown"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">tearDown</span> (line <span class="line-number">24</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			tearDown
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodtest_Csv_Reader_Accepts_Custom_Dialect" id="test_Csv_Reader_Accepts_Custom_Dialect"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">test_Csv_Reader_Accepts_Custom_Dialect</span> (line <span class="line-number">42</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Csv_Reader should also be able to accept a csv dialect in its constructor or by setDialect()</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			test_Csv_Reader_Accepts_Custom_Dialect
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodtest_Csv_Reader_Count" id="test_Csv_Reader_Count"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">test_Csv_Reader_Count</span> (line <span class="line-number">54</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Csv_Reader is an array-like object, so you should be able to count it</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			test_Csv_Reader_Count
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodtest_Csv_Reader_Escape_Characters_Get_Removed" id="test_Csv_Reader_Escape_Characters_Get_Removed"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">test_Csv_Reader_Escape_Characters_Get_Removed</span> (line <span class="line-number">74</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Tests that escape characters are removed from data</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			test_Csv_Reader_Escape_Characters_Get_Removed
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodtest_Csv_Reader_File_Does_Not_Exist" id="test_Csv_Reader_File_Does_Not_Exist"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">test_Csv_Reader_File_Does_Not_Exist</span> (line <span class="line-number">124</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">If the file doesn't exist, we should throw an exception</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			test_Csv_Reader_File_Does_Not_Exist
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodtest_Csv_Reader_Get_Path" id="test_Csv_Reader_Get_Path"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">test_Csv_Reader_Get_Path</span> (line <span class="line-number">64</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">We should get back the path to the csv file if the csv file exists</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			test_Csv_Reader_Get_Path
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodtest_Csv_Reader_Is_Iterable" id="test_Csv_Reader_Is_Iterable"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">test_Csv_Reader_Is_Iterable</span> (line <span class="line-number">109</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Tests that you can loop through Csv_Reader as if it was an array</p>
<p class="description"><p>This is the best way I can think of to test that its iterable  Basically I just test that it loops through and gives all good results</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			test_Csv_Reader_Is_Iterable
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodtest_Csv_Reader_Maintains_State" id="test_Csv_Reader_Maintains_State"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">test_Csv_Reader_Maintains_State</span> (line <span class="line-number">144</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Test that class is capable of maintaining its state / position</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			test_Csv_Reader_Maintains_State
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodtest_Csv_Reader_Reads_Row" id="test_Csv_Reader_Reads_Row"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">test_Csv_Reader_Reads_Row</span> (line <span class="line-number">98</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Tests that if the delimiter is set properly, rows are counted properly</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			test_Csv_Reader_Reads_Row
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodtest_Csv_Reader_Removes_Blank_Lines" id="test_Csv_Reader_Removes_Blank_Lines"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">test_Csv_Reader_Removes_Blank_Lines</span> (line <span class="line-number">134</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Check that blank lines are properly skipped</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			test_Csv_Reader_Removes_Blank_Lines
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodtest_Csv_Reader_Uses_Default_Dialect_If_None_Provided" id="test_Csv_Reader_Uses_Default_Dialect_If_None_Provided"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">test_Csv_Reader_Uses_Default_Dialect_If_None_Provided</span> (line <span class="line-number">33</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Csv_Reader should use the default dialect if none is provied (excel for now)</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			test_Csv_Reader_Uses_Default_Dialect_If_None_Provided
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodtest_quotes_get_removed_from_data" id="test_quotes_get_removed_from_data"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">test_quotes_get_removed_from_data</span> (line <span class="line-number">172</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Test that class is capable of maintaining its state / position</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			test_quotes_get_removed_from_data
		</span>
				()
			</div>
	
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Tue, 19 Feb 2008 21:05:34 -0800 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a>
	</p>
	</div></body>
</html>